package JAVACORE_TRAINING.ADVANCED.EXCEPTION_HANDLING.ThrowKeyword;

public class UsingAParameterInCatchBlock {

	public static void main(String[] args) {
		try{
			new LoginController().CheckLogin("", "");
		}catch(Exception ex){
			System.out.println(ex.getMessage());
		}		
	}	
}

class LoginController{
	public boolean CheckLogin(String userName, String passWord) {
		try{
			
		}catch(Exception ex){
			throw ex;
		}
		return true;
	}
}
